home *** CD-ROM | disk | FTP | other *** search
/ The Virtual Lab Series / The Virtual Lab Series (Howard Hughes Medical Institute)(BioInteractive)(2013).iso / pc / transgenic_fly / hype / sect1_part6quiz / sect1_part6quiz.hyperesources / sect1part6quiz_hype_generated_script.js < prev   
Text File  |  2013-03-25  |  42KB  |  114 lines

  1. //    HYPE.documents["sect1_part6quiz"]
  2.  
  3. (function HYPE_DocumentLoader() {
  4.     var resourcesFolderName = "sect1_part6quiz.hyperesources";
  5.     var documentName = "sect1_part6quiz";
  6.     var documentLoaderFilename = "sect1part6quiz_hype_generated_script.js";
  7.     var mainContainerID = "sect1part6quiz_hype_container";
  8.  
  9.     // find the URL for this script's absolute path and set as the resourceFolderName
  10.     try {
  11.         var scripts = document.getElementsByTagName('script');
  12.         for(var i = 0; i < scripts.length; i++) {
  13.             var scriptSrc = scripts[i].src;
  14.             if(scriptSrc != null && scriptSrc.indexOf(documentLoaderFilename) != -1) {
  15.                 resourcesFolderName = scriptSrc.substr(0, scriptSrc.lastIndexOf("/"));
  16.                 break;
  17.             }
  18.         }
  19.     } catch(err) {    }
  20.  
  21.     // Legacy support
  22.     if (typeof window.HYPE_DocumentsToLoad == "undefined") {
  23.         window.HYPE_DocumentsToLoad = new Array();
  24.     }
  25.  
  26.     // load HYPE.js if it hasn't been loaded yet
  27.     if(typeof HYPE_158 == "undefined") {
  28.         if(typeof window.HYPE_158_DocumentsToLoad == "undefined") {
  29.             window.HYPE_158_DocumentsToLoad = new Array();
  30.             window.HYPE_158_DocumentsToLoad.push(HYPE_DocumentLoader);
  31.  
  32.             var headElement = document.getElementsByTagName('head')[0];
  33.             var scriptElement = document.createElement('script');
  34.             scriptElement.type= 'text/javascript';
  35.             scriptElement.src = resourcesFolderName + '/' + 'HYPE.js?hype_version=158';
  36.             headElement.appendChild(scriptElement);
  37.         } else {
  38.             window.HYPE_158_DocumentsToLoad.push(HYPE_DocumentLoader);
  39.         }
  40.         return;
  41.     }
  42.     
  43.     // handle attempting to load multiple times
  44.     if(HYPE.documents[documentName] != null) {
  45.         var index = 1;
  46.         var originalDocumentName = documentName;
  47.         do {
  48.             documentName = "" + originalDocumentName + "-" + (index++);
  49.         } while(HYPE.documents[documentName] != null);
  50.         
  51.         var allDivs = document.getElementsByTagName("div");
  52.         var foundEligibleContainer = false;
  53.         for(var i = 0; i < allDivs.length; i++) {
  54.             if(allDivs[i].id == mainContainerID && allDivs[i].getAttribute("HYPE_documentName") == null) {
  55.                 var index = 1;
  56.                 var originalMainContainerID = mainContainerID;
  57.                 do {
  58.                     mainContainerID = "" + originalMainContainerID + "-" + (index++);
  59.                 } while(document.getElementById(mainContainerID) != null);
  60.                 
  61.                 allDivs[i].id = mainContainerID;
  62.                 foundEligibleContainer = true;
  63.                 break;
  64.             }
  65.         }
  66.         
  67.         if(foundEligibleContainer == false) {
  68.             return;
  69.         }
  70.     }
  71.     
  72.     var hypeDoc = new HYPE_158();
  73.     
  74.     var attributeTransformerMapping = {b:"i",c:"i",bC:"i",d:"i",aS:"i",M:"i",e:"f",aT:"i",f:"d",N:"i",O:"i",g:"c",aU:"i",P:"i",Q:"i",aV:"i",R:"c",bG:"f",aW:"f",aI:"i",S:"i",T:"i",l:"d",aX:"i",aJ:"i",m:"c",bH:"d",bI:"f",n:"c",aK:"i",bJ:"f",X:"i",aZ:"i",aL:"i",Y:"bM",A:"c",B:"c",bK:"f",C:"c",bL:"f",D:"c",t:"i",E:"i",G:"c",bA:"c",a:"i",bB:"i"};
  75.     
  76.     var resources = {"0":{n:"p6-11_blur.jpg",p:1},"1":{n:"p6-11.jpg",p:1}};
  77.     
  78.     var scenes = [{x:0,p:"600px",c:"#D9D9D9",onSceneTimelineCompleteActions:[{type:0}],v:{"1431":{G:"#171717",aU:8,c:470,aV:8,r:"inline",d:54,e:"1.000000",s:"Arial,Helvetica,Sans-Serif",bD:"none",t:15,Y:"20px",Z:"break-word",w:" ",j:"absolute",x:"visible",k:"div",y:"preserve",z:"1",aS:8,aT:8,a:4,b:378},"1500":{o:"content-box",h:"1",x:"visible",a:0,q:"100% 100%",b:0,j:"absolute",r:"inline",c:492,k:"div",z:"4",d:374}},n:"check_previous",onSceneLoadActions:[{type:4,javascriptOid:"836"}],T:{kTimelineDefaultIdentifier:{d:0,i:"kTimelineDefaultIdentifier",n:"Main Timeline",a:[],f:30},"1238_pressed":{d:0,i:"1238_pressed",n:"1238_pressed",a:[],f:30},"1433_pressed":{d:0,i:"1433_pressed",n:"1433_pressed",a:[],f:30}},o:"1435"},{x:1,p:"600px",c:"#D9D9D9",onSceneTimelineCompleteActions:[{type:0}],v:{"1491":{b:184,z:"45",K:"Solid",c:14,L:"Solid",d:15,aS:6,M:1,bD:"none",aT:6,N:1,O:1,g:"#F0F0F0",aU:6,P:1,aV:6,i:"2D",j:"absolute",aI:9,k:"div",aJ:9,aK:9,aL:9,A:"#A0A0A0",B:"#A0A0A0",aM:"1491_hover",r:"inline",Z:"break-word",C:"#A0A0A0",s:"Arial,Helvetica,Sans-Serif",aN:"1491_pressed",D:"#A0A0A0",t:13,aA:[{type:4,javascriptOid:"1360"}],F:"center",v:"bold",G:"#000000",aP:"pointer",w:"D",x:"visible",I:"Solid",a:354,y:"preserve",J:"Solid"},"1485":{b:133,z:"39",K:"Solid",c:14,L:"Solid",d:15,aS:6,M:1,bD:"none",aT:6,N:1,O:1,g:"#F0F0F0",aU:6,P:1,aV:6,i:"1B",j:"absolute",aI:9,k:"div",aJ:9,aK:9,aL:9,A:"#A0A0A0",B:"#A0A0A0",aM:"1485_hover",r:"inline",Z:"break-word",C:"#A0A0A0",s:"Arial,Helvetica,Sans-Serif",aN:"1485_pressed",D:"#A0A0A0",t:13,aA:[{type:4,javascriptOid:"1360"}],F:"center",v:"bold",G:"#000000",aP:"pointer",w:"B",x:"visible",I:"Solid",a:258,y:"preserve",J:"Solid"},"1489":{b:184,z:"43",K:"Solid",c:14,L:"Solid",d:15,aS:6,M:1,bD:"none",aT:6,N:1,O:1,g:"#F0F0F0",aU:6,P:1,aV:6,i:"2B",j:"absolute",aI:9,k:"div",aJ:9,aK:9,aL:9,A:"#A0A0A0",B:"#A0A0A0",aM:"1489_hover",r:"inline",Z:"break-word",C:"#A0A0A0",s:"Arial,Helvetica,Sans-Serif",aN:"1489_pressed",D:"#A0A0A0",t:13,aA:[{type:4,javascriptOid:"1360"}],F:"center",v:"bold",G:"#000000",aP:"pointer",w:"B",x:"visible",I:"Solid",a:258,y:"preserve",J:"Solid"},"1282":{c:329,d:42,I:"None",J:"None",K:"None",g:"#D5D1FF",L:"None",M:0,w:"",N:0,A:"#A0A0A0",x:"visible",j:"absolute",O:0,P:0,B:"#A0A0A0",C:"#A0A0A0",z:"10",k:"div",D:"#A0A0A0",a:81,b:127},"1267":{aV:8,w:"Question 2:",x:"visible",a:100,Z:"break-word",y:"preserve",j:"absolute",r:"inline",z:"21",aS:8,b:182,aT:8,k:"div",t:16,G:"#000000",aU:8},"1488":{b:184,z:"42",K:"Solid",c:14,L:"Solid",d:15,aS:6,M:1,bD:"none",aT:6,N:1,O:1,g:"#F0F0F0",aU:6,P:1,aV:6,i:"2A",j:"absolute",aI:9,k:"div",aJ:9,aK:9,aL:9,A:"#A0A0A0",B:"#A0A0A0",aM:"1488_hover",r:"inline",Z:"break-word",C:"#A0A0A0",s:"Arial,Helvetica,Sans-Serif",aN:"1488_pressed",D:"#A0A0A0",t:13,aA:[{type:4,javascriptOid:"1360"}],F:"center",v:"bold",G:"#000000",aP:"pointer",w:"A",x:"visible",I:"Solid",a:210,y:"preserve",J:"Solid"},"1262":{aV:8,w:"Question 1:",x:"visible",a:100,Z:"break-word",y:"preserve",j:"absolute",r:"inline",z:"16",aS:8,b:131,aT:8,k:"div",t:16,G:"#000000",aU:8},"1490":{b:184,z:"44",K:"Solid",c:14,L:"Solid",d:15,aS:6,M:1,bD:"none",aT:6,N:1,O:1,g:"#F0F0F0",aU:6,P:1,aV:6,i:"2C",j:"absolute",aI:9,k:"div",aJ:9,aK:9,aL:9,A:"#A0A0A0",B:"#A0A0A0",aM:"1490_hover",r:"inline",Z:"break-word",C:"#A0A0A0",s:"Arial,Helvetica,Sans-Serif",aN:"1490_pressed",D:"#A0A0A0",t:13,aA:[{type:4,javascriptOid:"1360"}],F:"center",v:"bold",G:"#000000",aP:"pointer",w:"C",x:"visible",I:"Solid",a:306,y:"preserve",J:"Solid"},"1484":{b:133,z:"38",K:"Solid",c:14,L:"Solid",d:15,aS:6,M:1,e:"1.000000",bD:"none",aT:6,N:1,O:1,g:"#F0F0F0",aU:6,P:1,aV:6,i:"1A",j:"absolute",aI:9,k:"div",aJ:9,aK:9,aL:9,A:"#A0A0A0",B:"#A0A0A0",aM:"1484_hover",r:"inline",Z:"break-word",C:"#A0A0A0",s:"Arial,Helvetica,Sans-Serif",aN:"1484_pressed",D:"#A0A0A0",t:13,aA:[{type:4,javascriptOid:"1360"}],F:"center",v:"bold",G:"#000000",aP:"pointer",w:"A",x:"visible",I:"Solid",a:210,y:"preserve",J:"Solid"},"1261":{aV:8,w:"Part 6 Quiz",x:"visible",a:197,Z:"break-word",y:"preserve",aS:8,r:"inline",z:"9",j:"absolute",s:"Arial,Helvetica,Sans-Serif",aT:8,b:81,t:16,k:"div",G:"#000000",aU:8,v:"bold"},"1493":{b:236,z:"47",K:"Solid",c:106,L:"Solid",d:17,aS:6,M:1,bD:"none",e:"1.000000",aT:6,N:1,O:1,g:"#A8A1E6",aU:6,P:1,Q:0,aV:6,R:"#808080",j:"absolute",S:0,aI:6,k:"div",T:0,aJ:6,aK:6,aL:6,A:"#A1A1A1",B:"#A1A1A1",aM:"1493_hover",r:"inline",Z:"break-word",C:"#A1A1A1",s:"Arial,Helvetica,Sans-Serif",aN:"1493_pressed",D:"#A1A1A1",t:13,aA:[{type:4,javascriptOid:"1430"}],F:"center",v:"bold",G:"#DDDDFF",aP:"pointer",w:"Skip Quiz",x:"visible",I:"Solid",a:107,y:"preserve",J:"Solid"},"1487":{b:133,z:"41",K:"Solid",c:14,L:"Solid",d:15,aS:6,M:1,bD:"none",aT:6,N:1,O:1,g:"#F0F0F0",aU:6,P:1,aV:6,i:"1D",j:"absolute",aI:9,k:"div",aJ:9,aK:9,aL:9,A:"#A0A0A0",B:"#A0A0A0",aM:"1487_hover",r:"inline",Z:"break-word",C:"#A0A0A0",s:"Arial,Helvetica,Sans-Serif",aN:"1487_pressed",D:"#A0A0A0",t:13,aA:[{type:4,javascriptOid:"1360"}],F:"center",v:"bold",G:"#000000",aP:"pointer",w:"D",x:"visible",I:"Solid",a:354,y:"preserve",J:"Solid"},"1492":{b:236,z:"46",K:"Solid",c:106,L:"Solid",d:17,aS:6,M:1,bD:"none",e:"1.000000",aT:6,N:1,O:1,g:"#6C6799",aU:6,P:1,Q:0,aV:6,R:"#808080",j:"absolute",S:0,aI:6,k:"div",T:0,aJ:6,aK:6,aL:6,A:"#A1A1A1",B:"#A1A1A1",aM:"1492_hover",r:"inline",Z:"break-word",C:"#A1A1A1",s:"Arial,Helvetica,Sans-Serif",aN:"1492_pressed",D:"#A1A1A1",t:13,aA:[{type:4,javascriptOid:"1427"}],F:"center",v:"bold",G:"#E1DEFF",aP:"pointer",w:"Submit Quiz",x:"visible",I:"Solid",a:262,y:"preserve",J:"Solid"},"1248":{G:"#171717",aU:8,c:470,aV:8,r:"inline",d:54,e:"1.000000",s:"Arial,Helvetica,Sans-Serif",bD:"none",t:15,Y:"20px",Z:"break-word",w:"Use the area above to mark your answers for the quiz questions in the notebook.  Click \"Submit Quiz\" when you are finished.<br>",j:"absolute",x:"visible",k:"div",y:"preserve",z:"1",aS:8,aT:8,a:4,b:378},"1486":{b:133,z:"40",K:"Solid",c:14,L:"Solid",d:15,aS:6,M:1,bD:"none",aT:6,N:1,O:1,g:"#F0F0F0",aU:6,P:1,aV:6,i:"1C",j:"absolute",aI:9,k:"div",aJ:9,aK:9,aL:9,A:"#A0A0A0",B:"#A0A0A0",aM:"1486_hover",r:"inline",Z:"break-word",C:"#A0A0A0",s:"Arial,Helvetica,Sans-Serif",aN:"1486_pressed",D:"#A0A0A0",t:13,aA:[{type:4,javascriptOid:"1360"}],F:"center",v:"bold",G:"#000000",aP:"pointer",w:"C",x:"visible",I:"Solid",a:306,y:"preserve",J:"Solid"},"1287":{c:329,d:42,I:"None",J:"None",K:"None",g:"#D5D1FF",L:"None",M:0,N:0,A:"#A0A0A0",x:"visible",j:"absolute",B:"#A0A0A0",P:0,O:0,C:"#A0A0A0",z:"11",k:"div",D:"#A0A0A0",a:81,b:178},"1260":{k:"div",c:329,d:217,I:"None",e:"1.000000",J:"None",K:"None",g:"#E8E6FF",L:"None",M:0,N:0,aI:14,j:"absolute",x:"visible",O:0,A:"#FFFFFF",aJ:14,P:0,C:"#FFFFFF",Q:3,z:"8",aK:14,R:"#000000",D:"#FFFFFF",B:"#FFFFFF",S:0,a:81,aL:14,T:0,b:71},"1495":{o:"content-box",h:"0",x:"visible",a:0,q:"100% 100%",b:0,j:"absolute",r:"inline",c:492,k:"div",z:"5",d:374}},n:"Quiz",onSceneLoadActions:[{type:4,javascriptOid:"1250"}],T:{"1449_pressed":{d:0,i:"1449_pressed",n:"1449_pressed",a:[],f:30},"1489_pressed":{d:1,i:"1489_pressed",n:"1489_pressed",a:[{f:"2",t:0,d:1,i:"g",e:"#7E73E6",r:1,s:"#F0F0F0",o:"1489"},{f:"2",t:0,d:1,i:"G",e:"#FFFFFF",r:1,s:"#000000",o:"1489"}],f:30},"1265_pressed":{d:0,i:"1265_pressed",n:"1265_pressed",a:[],f:30},"1484_pressed":{d:1,i:"1484_pressed",n:"1484_pressed",a:[{f:"2",t:0,d:1,i:"g",e:"#7E73E6",r:1,s:"#F0F0F0",o:"1484"},{f:"2",t:0,d:1,i:"G",e:"#FFFFFF",r:1,s:"#000000",o:"1484"}],f:30},"1492_hover":{d:1,i:"1492_hover",n:"1492_hover",a:[{f:"2",t:0,d:1,i:"G",e:"#FFFFFF",r:1,s:"#E1DEFF",o:"1492"}],f:30},"1279_pressed":{d:0,i:"1279_pressed",n:"1279_pressed",a:[],f:30},"1274_pressed":{d:0,i:"1274_pressed",n:"1274_pressed",a:[],f:30},"1493_pressed":{d:1,i:"1493_pressed",n:"1493_pressed",a:[{f:"2",t:0,d:1,i:"G",e:"#FFFED0",r:1,s:"#DDDDFF",o:"1493"}],f:30},"1493_hover":{d:1,i:"1493_hover",n:"1493_hover",a:[{f:"2",t:0,d:1,i:"G",e:"#FFFFFF",r:1,s:"#DDDDFF",o:"1493"}],f:30},"1266_pressed":{d:0,i:"1266_pressed",n:"1266_pressed",a:[],f:30},"1485_pressed":{d:1,i:"1485_pressed",n:"1485_pressed",a:[{f:"2",t:0,d:1,i:"g",e:"#7E73E6",r:1,s:"#F0F0F0",o:"1485"},{f:"2",t:0,d:1,i:"G",e:"#FFFFFF",r:1,s:"#000000",o:"1485"}],f:30},"1275_pressed":{d:0,i:"1275_pressed",n:"1275_pressed",a:[],f:30},"1270_pressed":{d:0,i:"1270_pressed",n:"1270_pressed",a:[],f:30},"1484_hover":{d:1,i:"1484_hover",n:"1484_hover",a:[{f:"2",t:0,d:1,i:"D",e:"#1000A1",r:1,s:"#A0A0A0",o:"1484"},{f:"2",t:0,d:1,i:"C",e:"#1000A1",r:1,s:"#A0A0A0",o:"1484"},{f:"2",t:0,d:1,i:"B",e:"#1000A1",r:1,s:"#A0A0A0",o:"1484"},{f:"2",t:0,d:1,i:"A",e:"#1000A1",r:1,s:"#A0A0A0",o:"1484"}],f:30},"1258_pressed":{d:0,i:"1258_pressed",n:"1258_pressed",a:[],f:30},"1363_pressed":{d:0,i:"1363_pressed",n:"1363_pressed",a:[],f:30},"1485_hover":{d:1,i:"1485_hover",n:"1485_hover",a:[{f:"2",t:0,d:1,i:"D",e:"#1000A1",r:1,s:"#A0A0A0",o:"1485"},{f:"2",t:0,d:1,i:"C",e:"#1000A1",r:1,s:"#A0A0A0",o:"1485"},{f:"2",t:0,d:1,i:"B",e:"#1000A1",r:1,s:"#A0A0A0",o:"1485"},{f:"2",t:0,d:1,i:"A",e:"#1000A1",r:1,s:"#A0A0A0",o:"1485"}],f:30},"1486_pressed":{d:1,i:"1486_pressed",n:"1486_pressed",a:[{f:"2",t:0,d:1,i:"g",e:"#7E73E6",r:1,s:"#F0F0F0",o:"1486"},{f:"2",t:0,d:1,i:"G",e:"#FFFFFF",r:1,s:"#000000",o:"1486"}],f:30},"1276_pressed":{d:0,i:"1276_pressed",n:"1276_pressed",a:[],f:30},"1271_pressed":{d:0,i:"1271_pressed",n:"1271_pressed",a:[],f:30},"1490_pressed":{d:1,i:"1490_pressed",n:"1490_pressed",a:[{f:"2",t:0,d:1,i:"g",e:"#7E73E6",r:1,s:"#F0F0F0",o:"1490"},{f:"2",t:0,d:1,i:"G",e:"#FFFFFF",r:1,s:"#000000",o:"1490"}],f:30},"1486_hover":{d:1,i:"1486_hover",n:"1486_hover",a:[{f:"2",t:0,d:1,i:"D",e:"#1000A1",r:1,s:"#A0A0A0",o:"1486"},{f:"2",t:0,d:1,i:"C",e:"#1000A1",r:1,s:"#A0A0A0",o:"1486"},{f:"2",t:0,d:1,i:"B",e:"#1000A1",r:1,s:"#A0A0A0",o:"1486"},{f:"2",t:0,d:1,i:"A",e:"#1000A1",r:1,s:"#A0A0A0",o:"1486"}],f:30},"1280_pressed":{d:0,i:"1280_pressed",n:"1280_pressed",a:[],f:30},"1259_pressed":{d:0,i:"1259_pressed",n:"1259_pressed",a:[],f:30},"1268_pressed":{d:0,i:"1268_pressed",n:"1268_pressed",a:[],f:30},"1263_pressed":{d:0,i:"1263_pressed",n:"1263_pressed",a:[],f:30},"1487_hover":{d:1,i:"1487_hover",n:"1487_hover",a:[{f:"2",t:0,d:1,i:"D",e:"#1000A1",r:1,s:"#A0A0A0",o:"1487"},{f:"2",t:0,d:1,i:"C",e:"#1000A1",r:1,s:"#A0A0A0",o:"1487"},{f:"2",t:0,d:1,i:"B",e:"#1000A1",r:1,s:"#A0A0A0",o:"1487"},{f:"2",t:0,d:1,i:"A",e:"#1000A1",r:1,s:"#A0A0A0",o:"1487"}],f:30},"1487_pressed":{d:1,i:"1487_pressed",n:"1487_pressed",a:[{f:"2",t:0,d:1,i:"g",e:"#7E73E6",r:1,s:"#F0F0F0",o:"1487"},{f:"2",t:0,d:1,i:"G",e:"#FFFFFF",r:1,s:"#000000",o:"1487"}],f:30},"1491_pressed":{d:1,i:"1491_pressed",n:"1491_pressed",a:[{f:"2",t:0,d:1,i:"g",e:"#7E73E6",r:1,s:"#F0F0F0",o:"1491"},{f:"2",t:0,d:1,i:"G",e:"#FFFFFF",r:1,s:"#000000",o:"1491"}],f:30},"1246_pressed":{d:0,i:"1246_pressed",n:"1246_pressed",a:[],f:30},"1281_pressed":{d:0,i:"1281_pressed",n:"1281_pressed",a:[],f:30},"1488_hover":{d:1,i:"1488_hover",n:"1488_hover",a:[{f:"2",t:0,d:1,i:"D",e:"#1000A1",r:1,s:"#A0A0A0",o:"1488"},{f:"2",t:0,d:1,i:"C",e:"#1000A1",r:1,s:"#A0A0A0",o:"1488"},{f:"2",t:0,d:1,i:"B",e:"#1000A1",r:1,s:"#A0A0A0",o:"1488"},{f:"2",t:0,d:1,i:"A",e:"#1000A1",r:1,s:"#A0A0A0",o:"1488"}],f:30},kTimelineDefaultIdentifier:{d:0,i:"kTimelineDefaultIdentifier",n:"Main Timeline",a:[],f:30},"1269_pressed":{d:0,i:"1269_pressed",n:"1269_pressed",a:[],f:30},"1264_pressed":{d:0,i:"1264_pressed",n:"1264_pressed",a:[],f:30},"1488_pressed":{d:1,i:"1488_pressed",n:"1488_pressed",a:[{f:"2",t:0,d:1,i:"g",e:"#7E73E6",r:1,s:"#F0F0F0",o:"1488"},{f:"2",t:0,d:1,i:"G",e:"#FFFFFF",r:1,s:"#000000",o:"1488"}],f:30},"1238_pressed":{d:0,i:"1238_pressed",n:"1238_pressed",a:[],f:30},"1278_pressed":{d:0,i:"1278_pressed",n:"1278_pressed",a:[],f:30},"1273_pressed":{d:0,i:"1273_pressed",n:"1273_pressed",a:[],f:30},"1489_hover":{d:1,i:"1489_hover",n:"1489_hover",a:[{f:"2",t:0,d:1,i:"D",e:"#1000A1",r:1,s:"#A0A0A0",o:"1489"},{f:"2",t:0,d:1,i:"C",e:"#1000A1",r:1,s:"#A0A0A0",o:"1489"},{f:"2",t:0,d:1,i:"B",e:"#1000A1",r:1,s:"#A0A0A0",o:"1489"},{f:"2",t:0,d:1,i:"A",e:"#1000A1",r:1,s:"#A0A0A0",o:"1489"}],f:30},"1490_hover":{d:1,i:"1490_hover",n:"1490_hover",a:[{f:"2",t:0,d:1,i:"D",e:"#1000A1",r:1,s:"#A0A0A0",o:"1490"},{f:"2",t:0,d:1,i:"C",e:"#1000A1",r:1,s:"#A0A0A0",o:"1490"},{f:"2",t:0,d:1,i:"B",e:"#1000A1",r:1,s:"#A0A0A0",o:"1490"},{f:"2",t:0,d:1,i:"A",e:"#1000A1",r:1,s:"#A0A0A0",o:"1490"}],f:30},"1491_hover":{d:1,i:"1491_hover",n:"1491_hover",a:[{f:"2",t:0,d:1,i:"D",e:"#1000A1",r:1,s:"#A0A0A0",o:"1491"},{f:"2",t:0,d:1,i:"C",e:"#1000A1",r:1,s:"#A0A0A0",o:"1491"},{f:"2",t:0,d:1,i:"B",e:"#1000A1",r:1,s:"#A0A0A0",o:"1491"},{f:"2",t:0,d:1,i:"A",e:"#1000A1",r:1,s:"#A0A0A0",o:"1491"}],f:30},"1492_pressed":{d:1,i:"1492_pressed",n:"1492_pressed",a:[{f:"2",t:0,d:1,i:"G",e:"#FFFED0",r:1,s:"#E1DEFF",o:"1492"}],f:30}},o:"1249"},{x:2,p:"600px",c:"#D9D9D9",onSceneTimelineCompleteActions:[{type:0}],v:{"1459":{G:"#171717",aU:8,c:470,aV:8,r:"inline",d:54,e:"1.000000",s:"Arial,Helvetica,Sans-Serif",bD:"none",t:15,Y:"20px",Z:"break-word",w:"Review your quiz answers in the notebook window. Click the Done button to continue when you are finished with the explanations.<br>",j:"absolute",x:"visible",k:"div",y:"preserve",z:"1",aS:8,aT:8,a:4,b:378},"1471":{b:133,z:"20",K:"Solid",c:14,L:"Solid",d:15,aS:6,M:1,bD:"none",aT:6,N:1,O:1,g:"#F0F0F0",aU:6,P:1,aV:6,i:"A1B",j:"absolute",aI:9,k:"div",aJ:9,aK:9,aL:9,A:"#A0A0A0",B:"#A0A0A0",aM:"1471_hover",r:"inline",Z:"break-word",C:"#A0A0A0",s:"Arial,Helvetica,Sans-Serif",aN:"1471_pressed",D:"#A0A0A0",t:13,F:"center",v:"bold",G:"#000000",aP:"default",w:"B",x:"visible",I:"Solid",a:258,y:"preserve",J:"Solid"},"1494":{b:236,z:"40",K:"Solid",c:62,L:"Solid",d:17,aS:6,M:1,bD:"none",e:"1.000000",aT:6,N:1,O:1,g:"#6C6799",aU:6,P:1,Q:0,aV:6,R:"#808080",j:"absolute",S:0,aI:6,k:"div",T:0,aJ:6,aK:6,aL:6,A:"#A1A1A1",B:"#A1A1A1",aM:"1494_hover",r:"inline",Z:"break-word",C:"#A1A1A1",s:"Arial,Helvetica,Sans-Serif",aN:"1494_pressed",D:"#A1A1A1",t:13,aA:[{type:4,javascriptOid:"1430"}],F:"center",v:"bold",G:"#E1DEFF",aP:"pointer",w:"Done",x:"visible",I:"Solid",a:306,y:"preserve",J:"Solid"},"1478":{c:329,d:42,I:"None",J:"None",K:"None",g:"#D5D1FF",L:"None",M:0,w:"",N:0,A:"#A0A0A0",x:"visible",j:"absolute",O:0,P:0,B:"#A0A0A0",C:"#A0A0A0",z:"12",k:"div",D:"#A0A0A0",a:81,b:127},"1468":{b:184,z:"26",K:"Solid",c:14,L:"Solid",d:15,aS:6,M:1,bD:"none",aT:6,N:1,O:1,g:"#F0F0F0",aU:6,P:1,aV:6,i:"A2C",j:"absolute",aI:9,k:"div",aJ:9,aK:9,aL:9,A:"#A0A0A0",B:"#A0A0A0",aM:"1468_hover",r:"inline",Z:"break-word",C:"#A0A0A0",s:"Arial,Helvetica,Sans-Serif",aN:"1468_pressed",D:"#A0A0A0",t:13,F:"center",v:"bold",G:"#000000",aP:"default",w:"C",x:"visible",I:"Solid",a:306,y:"preserve",J:"Solid"},"1474":{aV:8,w:"Question 1:",x:"visible",a:100,Z:"break-word",y:"preserve",j:"absolute",r:"inline",z:"18",aS:8,b:131,aT:8,k:"div",t:16,G:"#000000",aU:8},"1460":{b:133,z:"19",K:"Solid",c:14,L:"Solid",d:15,aS:6,M:1,e:"1.000000",bD:"none",aT:6,N:1,O:1,g:"#F0F0F0",aU:6,P:1,aV:6,i:"A1A",j:"absolute",aI:9,k:"div",aJ:9,aK:9,aL:9,A:"#A0A0A0",B:"#A0A0A0",aM:"1460_hover",r:"inline",Z:"break-word",C:"#A0A0A0",s:"Arial,Helvetica,Sans-Serif",aN:"1460_pressed",D:"#A0A0A0",t:13,F:"center",v:"bold",G:"#000000",aP:"default",w:"A",x:"visible",I:"Solid",a:210,y:"preserve",J:"Solid"},"1450":{b:184,z:"27",K:"Solid",c:14,L:"Solid",d:15,aS:6,M:1,bD:"none",aT:6,N:1,O:1,g:"#F0F0F0",aU:6,P:1,aV:6,i:"A2D",j:"absolute",aI:9,k:"div",aJ:9,aK:9,aL:9,A:"#A0A0A0",B:"#A0A0A0",aM:"1450_hover",r:"inline",Z:"break-word",C:"#A0A0A0",s:"Arial,Helvetica,Sans-Serif",aN:"1450_pressed",D:"#A0A0A0",t:13,F:"center",v:"bold",G:"#000000",aP:"default",w:"D",x:"visible",I:"Solid",a:354,y:"preserve",J:"Solid"},"1454":{b:133,z:"21",K:"Solid",c:14,L:"Solid",d:15,aS:6,M:1,bD:"none",aT:6,N:1,O:1,g:"#F0F0F0",aU:6,P:1,aV:6,i:"A1C",j:"absolute",aI:9,k:"div",aJ:9,aK:9,aL:9,A:"#A0A0A0",B:"#A0A0A0",aM:"1454_hover",r:"inline",Z:"break-word",C:"#A0A0A0",s:"Arial,Helvetica,Sans-Serif",aN:"1454_pressed",D:"#A0A0A0",t:13,F:"center",v:"bold",G:"#000000",aP:"default",w:"C",x:"visible",I:"Solid",a:306,y:"preserve",J:"Solid"},"1483":{k:"div",c:329,d:217,I:"None",e:"1.000000",J:"None",K:"None",g:"#E8E6FF",L:"None",M:0,N:0,aI:14,j:"absolute",x:"visible",O:0,A:"#FFFFFF",aJ:14,P:0,C:"#FFFFFF",Q:3,z:"7",aK:14,R:"#000000",D:"#FFFFFF",B:"#FFFFFF",S:0,a:81,aL:14,T:0,b:71},"1464":{aV:8,w:"Part 6 Quiz Results",x:"visible",a:166,Z:"break-word",y:"preserve",aS:8,r:"inline",z:"11",j:"absolute",s:"Arial,Helvetica,Sans-Serif",aT:8,b:81,t:16,k:"div",G:"#000000",aU:8,v:"bold"},"1477":{aV:8,w:"Question 2:",x:"visible",a:100,Z:"break-word",y:"preserve",j:"absolute",r:"inline",z:"23",aS:8,b:182,aT:8,k:"div",t:16,G:"#000000",aU:8},"1497":{o:"content-box",h:"0",x:"visible",a:0,q:"100% 100%",b:0,j:"absolute",r:"inline",c:492,k:"div",z:"5",d:374},"1472":{b:184,z:"25",K:"Solid",c:14,L:"Solid",d:15,aS:6,M:1,bD:"none",aT:6,N:1,O:1,g:"#F0F0F0",aU:6,P:1,aV:6,i:"A2B",j:"absolute",aI:9,k:"div",aJ:9,aK:9,aL:9,A:"#A0A0A0",B:"#A0A0A0",aM:"1472_hover",r:"inline",Z:"break-word",C:"#A0A0A0",s:"Arial,Helvetica,Sans-Serif",aN:"1472_pressed",D:"#A0A0A0",t:13,F:"center",v:"bold",G:"#000000",aP:"default",w:"B",x:"visible",I:"Solid",a:258,y:"preserve",J:"Solid"},"1462":{b:184,z:"24",K:"Solid",c:14,L:"Solid",d:15,aS:6,M:1,bD:"none",aT:6,N:1,O:1,g:"#F0F0F0",aU:6,P:1,aV:6,i:"A2A",j:"absolute",aI:9,k:"div",aJ:9,aK:9,aL:9,A:"#A0A0A0",B:"#A0A0A0",aM:"1462_hover",r:"inline",Z:"break-word",C:"#A0A0A0",s:"Arial,Helvetica,Sans-Serif",aN:"1462_pressed",D:"#A0A0A0",t:13,F:"center",v:"bold",G:"#000000",aP:"default",w:"A",x:"visible",I:"Solid",a:210,y:"preserve",J:"Solid"},"1452":{c:329,d:42,I:"None",J:"None",K:"None",g:"#D5D1FF",L:"None",M:0,N:0,A:"#A0A0A0",x:"visible",j:"absolute",B:"#A0A0A0",P:0,O:0,C:"#A0A0A0",z:"13",k:"div",D:"#A0A0A0",a:81,b:178},"1466":{b:133,z:"22",K:"Solid",c:14,L:"Solid",d:15,aS:6,M:1,bD:"none",aT:6,N:1,O:1,g:"#F0F0F0",aU:6,P:1,aV:6,i:"A1D",j:"absolute",aI:9,k:"div",aJ:9,aK:9,aL:9,A:"#A0A0A0",B:"#A0A0A0",aM:"1466_hover",r:"inline",Z:"break-word",C:"#A0A0A0",s:"Arial,Helvetica,Sans-Serif",aN:"1466_pressed",D:"#A0A0A0",t:13,F:"center",v:"bold",G:"#000000",aP:"default",w:"D",x:"visible",I:"Solid",a:354,y:"preserve",J:"Solid"}},n:"QuizResults",onSceneLoadActions:[{type:4,javascriptOid:"1481"}],T:{"1455_pressed":{d:0,i:"1455_pressed",n:"1455_pressed",a:[],f:30},"1246_pressed":{d:0,i:"1246_pressed",n:"1246_pressed",a:[],f:30},"1258_pressed":{d:0,i:"1258_pressed",n:"1258_pressed",a:[],f:30},"1363_pressed":{d:0,i:"1363_pressed",n:"1363_pressed",a:[],f:30},"1238_pressed":{d:0,i:"1238_pressed",n:"1238_pressed",a:[],f:30},"1259_pressed":{d:0,i:"1259_pressed",n:"1259_pressed",a:[],f:30},"1494_hover":{d:1,i:"1494_hover",n:"1494_hover",a:[{f:"2",t:0,d:1,i:"G",e:"#FFFFFF",r:1,s:"#E1DEFF",o:"1494"}],f:30},"1494_pressed":{d:1,i:"1494_pressed",n:"1494_pressed",a:[{f:"2",t:0,d:1,i:"G",e:"#FFFED0",r:1,s:"#E1DEFF",o:"1494"}],f:30},kTimelineDefaultIdentifier:{d:0,i:"kTimelineDefaultIdentifier",n:"Main Timeline",a:[],f:30}},o:"1479"},{x:3,p:"600px",c:"#D9D9D9",onSceneTimelineCompleteActions:[{type:0}],v:{"1254":{G:"#171717",aU:8,c:470,aV:8,r:"inline",d:54,e:"1.000000",s:"Arial,Helvetica,Sans-Serif",bD:"none",t:15,Y:"20px",Z:"break-word",w:"Review your results in the notebook.  When you are finished click above to view the lab summary page.<br>",j:"absolute",x:"visible",k:"div",y:"preserve",z:"1",aS:8,aT:8,a:4,b:378},"1499":{o:"content-box",h:"1",x:"visible",a:0,q:"100% 100%",b:0,j:"absolute",r:"inline",c:492,k:"div",z:"2",d:374},"1255":{b:331,z:"7",K:"Solid",c:88,L:"Solid",d:17,aS:6,M:1,bD:"none",e:"1.000000",aT:6,N:1,O:1,g:"#287AB2",aU:6,P:1,Q:3,aV:6,R:"#808080",j:"absolute",S:0,aI:6,k:"div",T:0,aJ:6,aK:6,aL:6,A:"#A0A0A0",B:"#A0A0A0",aM:"1255_hover",r:"inline",Z:"break-word",C:"#A0A0A0",s:"Arial,Helvetica,Sans-Serif",aN:"1255_pressed",D:"#A0A0A0",t:13,aA:[{type:4,javascriptOid:"1430"}],F:"center",v:"bold",G:"#D0E9FF",aP:"pointer",w:"Experiments",x:"visible",I:"Solid",a:374,y:"preserve",J:"Solid"}},n:"Results",onSceneLoadActions:[{type:4,javascriptOid:"1257"}],T:{"1255_hover":{d:1,i:"1255_hover",n:"1255_hover",a:[{f:"2",t:0,d:1,i:"G",e:"#FFFFFF",r:1,s:"#D0E9FF",o:"1255"}],f:30},kTimelineDefaultIdentifier:{d:0,i:"kTimelineDefaultIdentifier",n:"Main Timeline",a:[],f:30},"1238_pressed":{d:0,i:"1238_pressed",n:"1238_pressed",a:[],f:30},"1255_pressed":{d:1,i:"1255_pressed",n:"1255_pressed",a:[{f:"2",t:0,d:1,i:"G",e:"#FFFED0",r:1,s:"#D0E9FF",o:"1255"}],f:30},"1480_pressed":{d:0,i:"1480_pressed",n:"1480_pressed",a:[],f:30}},o:"1256"}];
  79.     
  80.     var javascripts = [{name:"check_previous_quiz",source:"function(hypeDocument, element, event) {\t/*\t\n\t\thypeDocument - access to the hype document API:\n\t\t\t\t\t\tMETHODS:\n\t\t\t\t\t\thypeDocument.documentName()\n\t\t\t\t\t\thypeDocument.sceneNames()\n\t\t\t\t\t\thypeDocument.currentSceneName()\n\t\t\t\t\t\thypeDocument.showSceneNamed(sceneName, optionalTransition)\n\t\t\t\t\t\thypeDocument.showNextScene(optionalTransition)\n\t\t\t\t\t\thypeDocument.showPreviousScene(optionalTransition)\n\t\t\t\t\t\thypeDocument.playTimelineNamed(timelineName)\n\t\t\t\t\t\thypeDocument.getElementById(id)\n\n\t\t\t\t\t\tMORE INFO:\n\t\t\t\t\t\thttp://tumultco.com/hype/documentation/javascript/\n\t\n\t\telement - DOMHTMLElement that triggered this function being called\n\t\tevent - event that triggered this function being called\n\t*/\n\t\nfunction set_cookie( name, value, expires, path, domain, secure )\n\t{\n\t// set time, it's in milliseconds\n\tvar today = new Date();\n\ttoday.setTime( today.getTime() );\n\n\t/*\n\tif the expires variable is set, make the correct\n\texpires time, the current script below will set\n\tit for x number of days, to make it for hours,\n\tdelete * 24, for minutes, delete * 60 * 24\n\t*/\n\tif ( expires )\n\t{\n\texpires = expires * 1000 * 60 * 60 * 24;\n\t}\n\tvar expires_date = new Date( today.getTime() + (expires) );\n\n\tdocument.cookie = name + \"=\" +escape( value ) +\n\t( ( expires ) ? \";expires=\" + expires_date.toGMTString() : \"\" ) +\n\t( ( path ) ? \";path=\" + path : \"\" ) +\n\t( ( domain ) ? \";domain=\" + domain : \"\" ) +\n\t( ( secure ) ? \";secure\" : \"\" );\n}\n\n\nfunction get_cookie( check_name ) {\n\t// first we'll split this cookie up into name/value pairs\n\t// note: document.cookie only returns name=value, not the other components\n\tvar a_all_cookies = document.cookie.split( ';' );\n\tvar a_temp_cookie = '';\n\tvar cookie_name = '';\n\tvar cookie_value = '';\n\tvar b_cookie_found = false; // set boolean t/f default f\n\n\tfor ( i = 0; i < a_all_cookies.length; i++ )\n\t{\n\t\t// now we'll split apart each name=value pair\n\t\ta_temp_cookie = a_all_cookies[i].split( '=' );\n\n\n\t\t// and trim left/right whitespace while we're at it\n\t\tcookie_name = a_temp_cookie[0].replace(/^\\s+|\\s+$/g, '');\n\n\t\t// if the extracted name matches passed check_name\n\t\tif ( cookie_name == check_name )\n\t\t{\n\t\t\tb_cookie_found = true;\n\t\t\t// we need to handle case where cookie has no value but exists (no = sign, that is):\n\t\t\tif ( a_temp_cookie.length > 1 )\n\t\t\t{\n\t\t\t\tcookie_value = unescape( a_temp_cookie[1].replace(/^\\s+|\\s+$/g, '') );\n\t\t\t}\n\t\t\t// note that in cases where cookie is initialized but no value, null is returned\n\t\t\treturn cookie_value;\n\t\t\tbreak;\n\t\t}\n\t\ta_temp_cookie = null;\n\t\tcookie_name = '';\n\t}\n\tif ( !b_cookie_found )\n\t{\n\t\treturn null;\t\n\t}\n}\n\t\n\n\tif ( get_cookie( 'hhmi_vlab_transgenic_fly' )) var prefs = ( get_cookie('hhmi_vlab_transgenic_fly'));\n\n\tvar prefsArray = new Array();\n\tprefsArray = prefs.split(',');\n\n\tprefsArray[0]  =  \"hype_sect1_part6quiz\"\n\tvar prefs = prefsArray;\n\tset_cookie ( \"hhmi_vlab_transgenic_fly\", prefs, 365 );\n\t\n\t//alert(prefs);\n\t\n\tif (prefsArray[73] == 1){\n\thypeDocument.showSceneNamed(\"QuizResults\")\n\t} else {\n\thypeDocument.showSceneNamed(\"Quiz\")\n\t}\n\t\t\n\t\n}",identifier:"836"},{name:"goURL_quizQuestions",source:"function(hypeDocument, element, event) {\t/*\t\n\t\thypeDocument - access to the hype document API:\n\t\t\t\t\t\tMETHODS:\n\t\t\t\t\t\thypeDocument.documentName()\n\t\t\t\t\t\thypeDocument.sceneNames()\n\t\t\t\t\t\thypeDocument.currentSceneName()\n\t\t\t\t\t\thypeDocument.showSceneNamed(sceneName, optionalTransition)\n\t\t\t\t\t\thypeDocument.showNextScene(optionalTransition)\n\t\t\t\t\t\thypeDocument.showPreviousScene(optionalTransition)\n\t\t\t\t\t\thypeDocument.playTimelineNamed(timelineName)\n\t\t\t\t\t\thypeDocument.getElementById(id)\n\n\t\t\t\t\t\tMORE INFO:\n\t\t\t\t\t\thttp://tumultco.com/hype/documentation/javascript/\n\t\n\t\telement - DOMHTMLElement that triggered this function being called\n\t\tevent - event that triggered this function being called\n\t*/\n\t\n\tvar myURL = '../navigation_noteframe/sect1_part6_quiz_nav/quizframe.html';\n\tparent.right.location.href = myURL;\n\t\n\t\n}",identifier:"1250"},{name:"goURL_quizResults",source:"function(hypeDocument, element, event) {\t/*\t\n\t\thypeDocument - access to the hype document API:\n\t\t\t\t\t\tMETHODS:\n\t\t\t\t\t\thypeDocument.documentName()\n\t\t\t\t\t\thypeDocument.sceneNames()\n\t\t\t\t\t\thypeDocument.currentSceneName()\n\t\t\t\t\t\thypeDocument.showSceneNamed(sceneName, optionalTransition)\n\t\t\t\t\t\thypeDocument.showNextScene(optionalTransition)\n\t\t\t\t\t\thypeDocument.showPreviousScene(optionalTransition)\n\t\t\t\t\t\thypeDocument.playTimelineNamed(timelineName)\n\n\t\t\t\t\t\tMORE INFO:\n\t\t\t\t\t\thttp://tumultco.com/hype/documentation/javascript/\n\t\n\t\telement - DOMHTMLElement that triggered this function being called\n\t*/\n\t\t\n\tvar myURL = '../navigation_noteframe/sect1_part6_quiz_results_nav/quizframe.html';\n\tparent.right.location.href = myURL;\n\t\n}",identifier:"1257"},{name:"select_answers",source:"function(hypeDocument, element, event) {\t/*\t\n\t\thypeDocument - access to the hype document API:\n\t\t\t\t\t\tMETHODS:\n\t\t\t\t\t\thypeDocument.documentName()\n\t\t\t\t\t\thypeDocument.sceneNames()\n\t\t\t\t\t\thypeDocument.currentSceneName()\n\t\t\t\t\t\thypeDocument.showSceneNamed(sceneName, optionalTransition)\n\t\t\t\t\t\thypeDocument.showNextScene(optionalTransition)\n\t\t\t\t\t\thypeDocument.showPreviousScene(optionalTransition)\n\t\t\t\t\t\thypeDocument.playTimelineNamed(timelineName)\n\t\t\t\t\t\thypeDocument.getElementById(id)\n\n\t\t\t\t\t\tMORE INFO:\n\t\t\t\t\t\thttp://tumultco.com/hype/documentation/javascript/\n\t\n\t\telement - DOMHTMLElement that triggered this function being called\n\t\tevent - event that triggered this function being called\n\t*/\n\t\nfunction set_cookie( name, value, expires, path, domain, secure )\n\t{\n\t// set time, it's in milliseconds\n\tvar today = new Date();\n\ttoday.setTime( today.getTime() );\n\n\t/*\n\tif the expires variable is set, make the correct\n\texpires time, the current script below will set\n\tit for x number of days, to make it for hours,\n\tdelete * 24, for minutes, delete * 60 * 24\n\t*/\n\tif ( expires )\n\t{\n\texpires = expires * 1000 * 60 * 60 * 24;\n\t}\n\tvar expires_date = new Date( today.getTime() + (expires) );\n\n\tdocument.cookie = name + \"=\" +escape( value ) +\n\t( ( expires ) ? \";expires=\" + expires_date.toGMTString() : \"\" ) +\n\t( ( path ) ? \";path=\" + path : \"\" ) +\n\t( ( domain ) ? \";domain=\" + domain : \"\" ) +\n\t( ( secure ) ? \";secure\" : \"\" );\n}\n\nfunction get_cookie( check_name ) {\n\t// first we'll split this cookie up into name/value pairs\n\t// note: document.cookie only returns name=value, not the other components\n\tvar a_all_cookies = document.cookie.split( ';' );\n\tvar a_temp_cookie = '';\n\tvar cookie_name = '';\n\tvar cookie_value = '';\n\tvar b_cookie_found = false; // set boolean t/f default f\n\n\tfor ( i = 0; i < a_all_cookies.length; i++ )\n\t{\n\t\t// now we'll split apart each name=value pair\n\t\ta_temp_cookie = a_all_cookies[i].split( '=' );\n\n\n\t\t// and trim left/right whitespace while we're at it\n\t\tcookie_name = a_temp_cookie[0].replace(/^\\s+|\\s+$/g, '');\n\n\t\t// if the extracted name matches passed check_name\n\t\tif ( cookie_name == check_name )\n\t\t{\n\t\t\tb_cookie_found = true;\n\t\t\t// we need to handle case where cookie has no value but exists (no = sign, that is):\n\t\t\tif ( a_temp_cookie.length > 1 )\n\t\t\t{\n\t\t\t\tcookie_value = unescape( a_temp_cookie[1].replace(/^\\s+|\\s+$/g, '') );\n\t\t\t}\n\t\t\t// note that in cases where cookie is initialized but no value, null is returned\n\t\t\treturn cookie_value;\n\t\t\tbreak;\n\t\t}\n\t\ta_temp_cookie = null;\n\t\tcookie_name = '';\n\t}\n\tif ( !b_cookie_found )\n\t{\n\t\treturn null;\t\n\t}\n}\n\t\n\n\tif ( get_cookie( 'hhmi_vlab_transgenic_fly' )) var prefs = ( get_cookie('hhmi_vlab_transgenic_fly'));\n\n\tvar prefsArray = new Array();\n\tprefsArray = prefs.split(',');\n\t\n\tvar elementID = element.id\n\t\n\t\n\t\thypeDocument.getElementById(elementID.charAt(0)+\"A\").style.backgroundColor=\"#F0F0F0\";\n\t\thypeDocument.getElementById(elementID.charAt(0)+\"B\").style.backgroundColor=\"#F0F0F0\";\n\t\thypeDocument.getElementById(elementID.charAt(0)+\"C\").style.backgroundColor=\"#F0F0F0\";\n\t\thypeDocument.getElementById(elementID.charAt(0)+\"D\").style.backgroundColor=\"#F0F0F0\";\n\t\n\t\thypeDocument.getElementById(elementID.charAt(0)+\"A\").innerHTML=\"<font color = 'black'>A\";\n\t\thypeDocument.getElementById(elementID.charAt(0)+\"B\").innerHTML=\"<font color = 'black'>B\";\n\t\thypeDocument.getElementById(elementID.charAt(0)+\"C\").innerHTML=\"<font color = 'black'>C\";\n\t\thypeDocument.getElementById(elementID.charAt(0)+\"D\").innerHTML=\"<font color = 'black'>D\";\n\t\n\t\tif (elementID.charAt(1) != prefsArray[45+parseInt(elementID.charAt(0))]) { \n\t\thypeDocument.getElementById(elementID).style.backgroundColor=\"#7E73E6\";\n\t\thypeDocument.getElementById(elementID).innerHTML=\"<font color = 'white'>\"+elementID.charAt(1)+\" \";\n\t\tprefsArray[45+parseInt(elementID.charAt(0))] = (elementID.charAt(1));  // SET THE LETTER AT CORRECT ARRAY POSITION TO TRACK ANSWER\n\t\t} else {\n\t\tprefsArray[45+parseInt(elementID.charAt(0))] = 0;  // Clicked same one again so it resets\n\t\t}\n\t\t\n\n\t\tvar prefs = prefsArray;\n\t\tset_cookie ( \"hhmi_vlab_transgenic_fly\", prefs, 365 );\n\n\t\n\t\t\n\t//alert(prefs);\t\n\t//alert (prefsArray[12+parseInt(elementID.charAt(0))]);\n\n}",identifier:"1360"},{name:"submitQuiz",source:"function(hypeDocument, element, event) {\t/*\t\n\t\thypeDocument - access to the hype document API:\n\t\t\t\t\t\tMETHODS:\n\t\t\t\t\t\thypeDocument.documentName()\n\t\t\t\t\t\thypeDocument.sceneNames()\n\t\t\t\t\t\thypeDocument.currentSceneName()\n\t\t\t\t\t\thypeDocument.showSceneNamed(sceneName, optionalTransition)\n\t\t\t\t\t\thypeDocument.showNextScene(optionalTransition)\n\t\t\t\t\t\thypeDocument.showPreviousScene(optionalTransition)\n\t\t\t\t\t\thypeDocument.playTimelineNamed(timelineName)\n\t\t\t\t\t\thypeDocument.getElementById(id)\n\n\t\t\t\t\t\tMORE INFO:\n\t\t\t\t\t\thttp://tumultco.com/hype/documentation/javascript/\n\t\n\t\telement - DOMHTMLElement that triggered this function being called\n\t\tevent - event that triggered this function being called\n\t*/\n\nfunction set_cookie( name, value, expires, path, domain, secure )\n\t{\n\t// set time, it's in milliseconds\n\tvar today = new Date();\n\ttoday.setTime( today.getTime() );\n\n\t/*\n\tif the expires variable is set, make the correct\n\texpires time, the current script below will set\n\tit for x number of days, to make it for hours,\n\tdelete * 24, for minutes, delete * 60 * 24\n\t*/\n\tif ( expires )\n\t{\n\texpires = expires * 1000 * 60 * 60 * 24;\n\t}\n\tvar expires_date = new Date( today.getTime() + (expires) );\n\n\tdocument.cookie = name + \"=\" +escape( value ) +\n\t( ( expires ) ? \";expires=\" + expires_date.toGMTString() : \"\" ) +\n\t( ( path ) ? \";path=\" + path : \"\" ) +\n\t( ( domain ) ? \";domain=\" + domain : \"\" ) +\n\t( ( secure ) ? \";secure\" : \"\" );\n}\t\n\nfunction get_cookie( check_name ) {\n\t// first we'll split this cookie up into name/value pairs\n\t// note: document.cookie only returns name=value, not the other components\n\tvar a_all_cookies = document.cookie.split( ';' );\n\tvar a_temp_cookie = '';\n\tvar cookie_name = '';\n\tvar cookie_value = '';\n\tvar b_cookie_found = false; // set boolean t/f default f\n\n\tfor ( i = 0; i < a_all_cookies.length; i++ )\n\t{\n\t\t// now we'll split apart each name=value pair\n\t\ta_temp_cookie = a_all_cookies[i].split( '=' );\n\n\n\t\t// and trim left/right whitespace while we're at it\n\t\tcookie_name = a_temp_cookie[0].replace(/^\\s+|\\s+$/g, '');\n\n\t\t// if the extracted name matches passed check_name\n\t\tif ( cookie_name == check_name )\n\t\t{\n\t\t\tb_cookie_found = true;\n\t\t\t// we need to handle case where cookie has no value but exists (no = sign, that is):\n\t\t\tif ( a_temp_cookie.length > 1 )\n\t\t\t{\n\t\t\t\tcookie_value = unescape( a_temp_cookie[1].replace(/^\\s+|\\s+$/g, '') );\n\t\t\t}\n\t\t\t// note that in cases where cookie is initialized but no value, null is returned\n\t\t\treturn cookie_value;\n\t\t\tbreak;\n\t\t}\n\t\ta_temp_cookie = null;\n\t\tcookie_name = '';\n\t}\n\tif ( !b_cookie_found )\n\t{\n\t\treturn null;\t\n\t}\n}\n\t\n\n\tif ( get_cookie( 'hhmi_vlab_transgenic_fly' )) var prefs = ( get_cookie('hhmi_vlab_transgenic_fly'));\n\n\tvar prefsArray = new Array();\n\tprefsArray = prefs.split(',');\n\t\n\tvar numberAnswered = 0;\n\t\n\tfor (i=1; i<3; i++)\n  \t{\n  \t\tif ((prefsArray[i+45] == \"A\") || (prefsArray[i+45] == \"B\") || (prefsArray[i+45] == \"C\") || (prefsArray[i+45] == \"D\")){ \n  \t\t\tnumberAnswered = numberAnswered+1;\t\n  \t\t}\n \t }\t\n\n\tif (numberAnswered == 2){ \n  \t\tprefsArray[73] = 1; // THIS SETS THAT QUIZ 1 HAS BEEN COMPLETED\n\t\tvar prefs = prefsArray;\n\t\tset_cookie ( \"hhmi_vlab_transgenic_fly\", prefs, 365 );\n\t\t//alert(prefs);\n\t\thypeDocument.showNextScene()\t\n  \t} else {\n  \t\talert(\"Please answer all the questions before submitting the quiz.\")\n\t}\n\t\n\n\t\n}",identifier:"1427"},{name:"go_Experiments",source:"function(hypeDocument, element, event) {\t/*\t\n\t\thypeDocument - access to the hype document API:\n\t\t\t\t\t\tMETHODS:\n\t\t\t\t\t\thypeDocument.documentName()\n\t\t\t\t\t\thypeDocument.sceneNames()\n\t\t\t\t\t\thypeDocument.currentSceneName()\n\t\t\t\t\t\thypeDocument.showSceneNamed(sceneName, optionalTransition)\n\t\t\t\t\t\thypeDocument.showNextScene(optionalTransition)\n\t\t\t\t\t\thypeDocument.showPreviousScene(optionalTransition)\n\t\t\t\t\t\thypeDocument.playTimelineNamed(timelineName)\n\t\t\t\t\t\thypeDocument.getElementById(id)\n\n\t\t\t\t\t\tMORE INFO:\n\t\t\t\t\t\thttp://tumultco.com/hype/documentation/javascript/\n\t\n\t\telement - DOMHTMLElement that triggered this function being called\n\t\tevent - event that triggered this function being called\n\t*/\n\t\n\tvar myURL = (\"hype_sect2_exp1.html\");\n\tparent.left.location.href = myURL;\n\t\n}",identifier:"1430"},{name:"show_answers",source:"function(hypeDocument, element, event) {\t/*\t\n\t\thypeDocument - access to the hype document API:\n\t\t\t\t\t\tMETHODS:\n\t\t\t\t\t\thypeDocument.documentName()\n\t\t\t\t\t\thypeDocument.sceneNames()\n\t\t\t\t\t\thypeDocument.currentSceneName()\n\t\t\t\t\t\thypeDocument.showSceneNamed(sceneName, optionalTransition)\n\t\t\t\t\t\thypeDocument.showNextScene(optionalTransition)\n\t\t\t\t\t\thypeDocument.showPreviousScene(optionalTransition)\n\t\t\t\t\t\thypeDocument.playTimelineNamed(timelineName)\n\t\t\t\t\t\thypeDocument.getElementById(id)\n\n\t\t\t\t\t\tMORE INFO:\n\t\t\t\t\t\thttp://tumultco.com/hype/documentation/javascript/\n\t\n\t\telement - DOMHTMLElement that triggered this function being called\n\t\tevent - event that triggered this function being called\n\t*/\n\t\nfunction get_cookie( check_name ) {\n\t// first we'll split this cookie up into name/value pairs\n\t// note: document.cookie only returns name=value, not the other components\n\tvar a_all_cookies = document.cookie.split( ';' );\n\tvar a_temp_cookie = '';\n\tvar cookie_name = '';\n\tvar cookie_value = '';\n\tvar b_cookie_found = false; // set boolean t/f default f\n\n\tfor ( i = 0; i < a_all_cookies.length; i++ )\n\t{\n\t\t// now we'll split apart each name=value pair\n\t\ta_temp_cookie = a_all_cookies[i].split( '=' );\n\n\n\t\t// and trim left/right whitespace while we're at it\n\t\tcookie_name = a_temp_cookie[0].replace(/^\\s+|\\s+$/g, '');\n\n\t\t// if the extracted name matches passed check_name\n\t\tif ( cookie_name == check_name )\n\t\t{\n\t\t\tb_cookie_found = true;\n\t\t\t// we need to handle case where cookie has no value but exists (no = sign, that is):\n\t\t\tif ( a_temp_cookie.length > 1 )\n\t\t\t{\n\t\t\t\tcookie_value = unescape( a_temp_cookie[1].replace(/^\\s+|\\s+$/g, '') );\n\t\t\t}\n\t\t\t// note that in cases where cookie is initialized but no value, null is returned\n\t\t\treturn cookie_value;\n\t\t\tbreak;\n\t\t}\n\t\ta_temp_cookie = null;\n\t\tcookie_name = '';\n\t}\n\tif ( !b_cookie_found )\n\t{\n\t\treturn null;\t\n\t}\n}\n\t\n\n\tif ( get_cookie( 'hhmi_vlab_transgenic_fly' )) var prefs = ( get_cookie('hhmi_vlab_transgenic_fly'));\n\n\tvar prefsArray = new Array();\n\tprefsArray = prefs.split(',');\n\t\n\t\n\t// SHOWS CORRECT AND INCORRECT\n\tif (prefsArray[46] == \"C\") {\n\t\thypeDocument.getElementById(\"A1\"+prefsArray[46]+\"\").style.backgroundColor=\"#3BBF3A\";\n\t\thypeDocument.getElementById(\"A1\"+prefsArray[46]+\"\").innerHTML=\"<font color = 'white'>\"+prefsArray[46]+\" \";\n\t} else {\n\t\thypeDocument.getElementById(\"A1\"+prefsArray[46]+\"\").style.backgroundColor=\"#BF3A3C\";\n\t\thypeDocument.getElementById(\"A1\"+prefsArray[46]+\"\").innerHTML=\"<font color = 'white'>\"+prefsArray[46]+\" \";\n\t}\n\t\n\tif (prefsArray[47] == \"A\") {\n\t\thypeDocument.getElementById(\"A2\"+prefsArray[47]+\"\").style.backgroundColor=\"#3BBF3A\";\n\t\thypeDocument.getElementById(\"A2\"+prefsArray[47]+\"\").innerHTML=\"<font color = 'white'>\"+prefsArray[47]+\" \";\n\t} else {\n\t\thypeDocument.getElementById(\"A2\"+prefsArray[47]+\"\").style.backgroundColor=\"#BF3A3C\";\n\t\thypeDocument.getElementById(\"A2\"+prefsArray[47]+\"\").innerHTML=\"<font color = 'white'>\"+prefsArray[47]+\" \";\n\t}\n\t\n\n\t\n\tvar myURL = '../navigation_noteframe/sect1_part6_quiz_results_nav/quizframe.html';\n\tparent.right.location.href = myURL;\n\t\t\n\t//alert(prefs);\t\n\n}",identifier:"1481"}];
  81.     
  82.     var functions = {};
  83.     var javascriptMapping = {};
  84.     for(var i = 0; i < javascripts.length; i++) {
  85.         try {
  86.             javascriptMapping[javascripts[i].identifier] = javascripts[i].name;
  87.             eval("functions." + javascripts[i].name + " = " + javascripts[i].source);
  88.         } catch (e) {
  89.             hypeDoc.log(e);
  90.             functions[javascripts[i].name] = (function () {});
  91.         }
  92.     }
  93.     
  94.     hypeDoc.setAttributeTransformerMapping(attributeTransformerMapping);
  95.     hypeDoc.setResources(resources);
  96.     hypeDoc.setScenes(scenes);
  97.     hypeDoc.setJavascriptMapping(javascriptMapping);
  98.     hypeDoc.functions = functions;
  99.     hypeDoc.setCurrentSceneIndex(0);
  100.     hypeDoc.setMainContentContainerID(mainContainerID);
  101.     hypeDoc.setResourcesFolderName(resourcesFolderName);
  102.     hypeDoc.setShowHypeBuiltWatermark(0);
  103.     hypeDoc.setShowLoadingPage(false);
  104.     hypeDoc.setDrawSceneBackgrounds(true);
  105.     hypeDoc.setGraphicsAcceleration(true);
  106.     hypeDoc.setDocumentName(documentName);
  107.  
  108.     HYPE.documents[documentName] = hypeDoc.API;
  109.     document.getElementById(mainContainerID).setAttribute("HYPE_documentName", documentName);
  110.  
  111.     hypeDoc.documentLoad(this.body);
  112. }());
  113.  
  114.